package com.guigu.www.cxk.service.imp;

import com.guigu.www.cxk.service.CXKBespeakPojectTypeService;
import com.guigu.www.mapper.BespeakPojectMapper;
import com.guigu.www.mapper.BespeakPojectTypeMapper;
import com.guigu.www.pojo.BespeakPoject;
import com.guigu.www.pojo.BespeakPojectType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CXKBespeakPojectTypeServiceImpl implements CXKBespeakPojectTypeService {
    @Autowired
    BespeakPojectTypeMapper bespeakPojectTypeMapper;

    @Autowired
    BespeakPojectMapper bespeakPojectMapper;

    /*查询体检类型项目表*/
    @Override
    public List<BespeakPojectType> ProType(int id) {
        return bespeakPojectTypeMapper.ProType(id);
    }

    /*子查询 根据套餐id查询对应的体检项目*/
    @Override
    public List<BespeakPoject> bespeakProject(int id) {
        return bespeakPojectMapper.bespeakProject(id);
    }

    /*子查询 根据套餐id查询体检项目的总数*/
    @Override
    public int bespeakProjectCount(int id) {
        return bespeakPojectMapper.bespeakProjectCount(id);
    }
}
